package cn.stacey.day02;

/**
 * 跳出嵌套循环
 * 
 * @author hchaojie
 *
 */
public class DemoNestLoopBreak {
	public static void main(String[] args) {
		// 定义一个跳转的标签
		outter:
		for (int i = 0; i < 5; i++) {
			for (int j = 0; j < 5; j++) {
				if (j == 4) {
					break outter;
				}
				System.out.print(" *");
			}
			
			System.out.println();
		}
	}
}
